package com.speech.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

public class HomeFragmentAdapter extends FragmentPagerAdapter {

    private List<Fragment> lst_fragment;

    public HomeFragmentAdapter(FragmentManager fm, List<Fragment> lst_fragment) {
        super(fm);
        this.lst_fragment = lst_fragment;
    }

    @Override
    public Fragment getItem(int position) {
        return lst_fragment.get(position);
    }

    @Override
    public int getCount() {
        return lst_fragment.size();
    }
}
